package router

import (
	"api/basic/pkg/jwt"
	"api/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("v1")
	{
		v1.GET("host", api.Chat)
		user := v1.Group("user")
		{
			user.POST("userLogin", api.UserLogin)
			user.POST("userSuccess", api.UserSuccess)
		}
		Consultation := v1.Group("consultation")
		{
			jwt.JWTAuth(api.JWTAME)
			Consultation.POST("add", api.Consultation)
		}
	}
}
